package com.heima.behavior.controller.v1;

import com.heima.behavior.service.ApArticleBehaviorService;
import com.heima.behavior.service.ApCollectionBehaviorService;
import com.heima.model.behavior.dtos.ArticleBehaviorDTO;
import com.heima.model.behavior.dtos.CollectionBehaviorDTO;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author XHui
 * @Since 2024/2/22 8:44
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1/article/load_article_behavior")
public class ApArticleBehaviorController {

    @Resource
    private ApArticleBehaviorService apArticleBehaviorService;

    @PostMapping
    public ResponseResult loadArticleBehaviors(
            @RequestBody @Validated ArticleBehaviorDTO dto) {
        return apArticleBehaviorService.loadArticleBehavior(dto);
    }

}
